<%@ page language="java"
	import="java.util.*,com.opensymphony.xwork2.util.*"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>供应信息查询</title>

</head>
<body>
<center>
	<s:property value="tip" />
	<br>
	信息查询
	<div style="a">
 
	<s:form action="gongyingchaxun">

		<s:textfield name="gouru_time" cssStyle="width:140px" label="按购入时间查询" />
		<s:select name="laiyuan" id="laiyuan" label="来源" list="#session.laiyuanMap" listKey="key" cssStyle="width:140px"
			headerValue="--请选择来源--" headerKey="0" listValue="value"></s:select>
		<s:select name="fz_person" id="fz_person" label="负责人" list="#session.yuangongMap" listKey="key" cssStyle="width:140px"
		headerValue="--请选择负责人--" headerKey="0" listValue="value"></s:select>	
 
		<s:textfield name="eb_id" cssStyle="width:140px" label="按耳标查询" />
		
		<s:submit cssClass=".btn_grey" value="查询" />
	</s:form>
	</div>
	<s:form action="" method="post">	
		
 		供应记录

	<table width="600" border="1">
	    <tr style="background-color: #CCCCCC">
			<td>批次ID</td>
			<td>购入时间</td>
			<td>来源</td>			
			<td>负责人</td>
			<td>耳标号</td>
		</tr>
		<s:iterator value="resultList" status="index" id="l">
		<tr>

				<td><s:property value="#l.id" /> </td>
				<td><s:property value="#l.gouru_time" /> </td>
				<td><s:property value="#l.laiyuan.name" /></td>
				<td><s:property value="#l.fz_person.name" /></td>
				<td><s:property value="#l.eb_id" /></td>

				</tr>			
		</s:iterator>
		</table>
	</s:form>	
	</center>
</body>
</html>